package com.cje.singleton.demo;/**
 * @Auther: ChenJinEn
 * @Date: 2020/8/10 09:32
 * @Description: //TODO
 */

/**
 *@ClassName Demo5
 *@Description TODO 双重检测锁方式单列模式
 *@Author checkZH
 *@Date 2020/8/10 9:32
 *@Version 1.0
 */
public class Demo5 {
    private Demo5() {
    }
    public static Demo5 demo5;
    public static Demo5 getSingleObj(){
        synchronized (demo5){
        if (demo5 == null) {
            demo5 = new Demo5();
        }
        }
        return demo5;
    }


}
